#ifndef STATION_H
#define STATION_H
#include<QString>

class station
{
public:
    station();
    void setsname(QString sn);
    void setdistance(double d);
     QString getsname();
     int getremained();
     void numoticket();
     int get_distance();
     void add_ticket();
private:
    QString sname;    //车站名
   double distance;    //与下一站间的距离
   int remained;    //余票（若为A-C间的余票，则取A-B中reminded最小值
};

#endif // STATION_H
